<%--
  @author Duminda Dharmakeerthi
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:if test="hasActionErrors() || hasActionMessages()">
    <div id="message-box" class="message-box">
        <div class="action-msg"><s:actionmessage/></div>
        <div class="action-err"><s:actionerror/></div>
    </div>
</s:if>

<s:include value="../notifications.jsp"/>
<div id="land-registration-module-home" class="module-home">
    <div class="page-title">
        <h2><s:label value="%{getText('manage_government_organization.label')}"/></h2>
    </div>
    <ul>
        <s:if test="user.role.id=='ORMOI'">
            <li>
                <s:a href="addGOInterestsInfo.do">
                    <img src="${pageContext.request.contextPath}/images/company-profile.png" alt="Organizational Information">
                    <span>
                        <s:label value="%{getText('add_organization.label')}"/>
                    </span>
                </s:a>
            </li>
            <li>
                <s:a href="initEditOrganizationList.do">
                    <img src="${pageContext.request.contextPath}/images/modify-form.png" alt="Organizational Information">
                    <span> 
                         <s:label value="%{getText('edit_organization.label')}"/>
                    </span>
                </s:a>
            </li>
            <li>
                <s:a href="initSendLatterOrganizationList.do">
                    <img src="${pageContext.request.contextPath}/images/mail.png" alt="Organizational Information">
                    <span>
                         <s:label value="%{getText('send_latter.label')}"/>
                    </span>
                </s:a>
            </li>
            <li>
                <s:a href="initActiveOrganizationList.do">
                    <img src="${pageContext.request.contextPath}/images/registration-form.png" alt="Organizational Information">
                    <span>
                        <s:label value="%{getText('active_inactive_organization.label')}"/>
                    </span>
                </s:a>
            </li>
            <li>
                <s:a href="initRegisterOrganizationList.do">
                    <img src="${pageContext.request.contextPath}/images/accept.png" alt="Organizational Information">
                    <span>
                        <s:label value="%{getText('register_organization.label')}"/>
                    </span>
                </s:a>
            </li>
            <li>
                <s:a href="initCreateORPIIOrganizationList.do">
                    <img src="${pageContext.request.contextPath}/images/people.png" alt="Organizational Information">
                    <span>
                        <s:label value="%{getText('create_orpii_users.label')}"/>
                    </span>
                </s:a>
            </li>
            <li>
                <s:a href="initCreateURMGOIOrganizationList.do">
                    <img src="${pageContext.request.contextPath}/images/people-image-2.png" alt="Organizational Information">
                    <span>
                        <s:label value="%{getText('create_urmgoi_user.label')}"/>
                    </span>
                </s:a>
            </li>
            <li>
                <s:a href="initEditUsersOrganizationList.do">
                    <img src="${pageContext.request.contextPath}/images/update-user.png" alt="Organizational Information">
                    <span>
                        <s:label value="%{getText('edit_users.label')}"/>
                    </span>
                </s:a>
            </li>
            <li>
                <s:a href="initActiveUsersOrganizationList.do">
                    <img src="${pageContext.request.contextPath}/images/active-user-icon.png" alt="Organizational Information">
                    <span>
                        <s:label value="%{getText('active_inactive_users.label')}"/>
                    </span>
                </s:a>
            </li>
        </s:if>
        <s:if test="user.role.id=='ORPII'">
            <li>
                <s:a href="initCreateURMGOIUsers.do">
                    <img src="${pageContext.request.contextPath}/images/home.png" alt="Module 3">
                    <span> <s:label value="%{getText('register_urmgoi_users.label')}"/> </span>
                </s:a>
            </li>
            <li>
                <s:a href="urmgoiUserList.do">
                    <img src="${pageContext.request.contextPath}/images/home.png" alt="Module 3">
                    <span><s:label value="%{getText('active_urmgoi_user.label')}"/></span>
                </s:a>
            </li>
        </s:if>
    </ul>
</div>